package com.xin.springcloudconsumer.utils;

import javax.servlet.http.HttpServletRequest;

public class SessionValueUtils {
    /**
     * 获取openId
     * @param request
     * @return
     */
    public static String getOpenId(HttpServletRequest request){
           String openId= (String) request.getSession().getAttribute("openId");
           return openId;
    }

    /**
     * 获取headImage
     * @param request
     * @return
     */
    public static String getHeadImage(HttpServletRequest request){
        String headImage= (String) request.getSession().getAttribute("headImage");
        return headImage;
    }

}
